package com.example.service;

import javax.jws.WebParam;
import javax.jws.WebService;


/**
 * @Create by Intellij IDEA
 * @Author: songXuSheng
 * @Date: 2021/9/9 14:23
 */
@WebService
public interface UserService {
    /**
     * 查询单个用户
     * @param id 用户id
     * @return User 单个用户信息
     */

    String findById(@WebParam(name = "id") String id);
    /**
     * 添加用户
     * @param user 用户信息
     * @return true/false
     */

    Integer addUserDO(@WebParam(name = "user") String user);

    /**
     * 查询所有用户信息
     * @param current
     * @param limit
     * @return List<UserDO>
     */

    String listUser(@WebParam(name = "current") Long current, @WebParam(name = "limit") Long limit);
    /**
     * 删除用户
     * @param id 用户ID
     * @return true/false
     */

    Integer delete(@WebParam(name = "id") String id);
    /**
     * 更新用户
     * @param user 用户信息
     * @return true/false
     */

    Integer update(@WebParam(name = "user") String user);
}
